package ihm.table;

import java.awt.Dimension;

import javax.swing.JTable;
import javax.swing.table.TableModel;
import javax.swing.table.TableRowSorter;

/**
 * JTable.
 * @author Guillaume Pocas & Jean-François Augé
 */
@Deprecated
public class AppletTable extends JTable {
	
	private static final long serialVersionUID = 1L;
	
	private TableRowSorter<TableModel> sorter;

	/**
	 * Constructeur.
	 * @param tm
	 */
	public AppletTable(TableModel tm) {
		super(tm);
		this.setPreferredScrollableViewportSize(new Dimension(500, 70));
		this.setFillsViewportHeight(true);
		
		sorter = new TableRowSorter<TableModel>(tm);
		this.setRowSorter(sorter);
	}

}
